---
id: CVE-2024-10295
title: >-
  Gateway: apicast basic auth bypass via malformed base64 headerssending
  non-base64 'basic' auth with special characters causes apicast to incorrectly
  authenticate a request
summary: >-
  A flaw was found in Gateway. Sending a non-base64 'basic' auth with special
  characters can cause APICast to incorrectly authenticate a request. A
  malformed basic authentication header containing special characters bypasses
  authentication…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
cvssSource: cna
cwe:
  - CWE-863
vendor: Red Hat
product: gateway
affected:
  - gateway <= 2.14.2
  - 3scale-amp2/apicast-gateway-rhel8 (all versions)
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2024-11-08T19:09:54.921570Z'
published: '2024-10-24'
updated: '2026-11-04'
sourceUpdated: '2026-11-04T21:08:07.716Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2024-10295'
references:
  - url: 'https://access.redhat.com/security/cve/CVE-2024-10295'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2321258'
    label: RHBZ#2321258
tags:
  - cve.org
epss: 0.00393
epssPercentile: 0.33596
ingestedAt: '2026-11-05T21:36:00.598Z'
---

## Overview

A flaw was found in Gateway. Sending a non-base64 'basic' auth with special characters can cause APICast to incorrectly authenticate a request. A malformed basic authentication header containing special characters bypasses authentication and allows unauthorized access to the backend. This issue can occur due to a failure in the base64 decoding process, which causes APICast to skip the rest of the authentication checks and proceed with routing the request upstream.

## Affected

- `gateway <= 2.14.2`
- `3scale-amp2/apicast-gateway-rhel8 (all versions)`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
