CVE-2019-12419: Potential session hijack in Apache CXF

org.apache.cxf:cxf Updated 02 Oct 2025

Summary

08/11/2019
Yes i
Critical
9.8

CVE-2019-12419: Potential session hijack in Apache CXF. Affects org.apache.cxf:cxf across 2 version ranges.

< 3.2.11 >= 3.3.0, < 3.3.4

Fixed in 3.2.11 or 3.3.4, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Apache CXF is a popular open-source web services framework that allows developers to build and deploy services using various protocols and data formats. It provides all the necessary components to create a fully-fledged OpenId Connect service. OpenId Connect is an authentication protocol that allows users to log in to multiple websites using a single set of credentials. However, a vulnerability has been discovered in Apache CXF that could potentially lead to session hijacking.

Vulnerability Detail

The vulnerability in Apache CXF exists in the access token services. When a client requests an access token, the service does not properly validate that the authenticated principal is the same as the client ID specified in the request. This means that if a malicious client manages to steal an authorization code issued to another client, they can exploit this vulnerability to obtain an access token for the victim client. This could lead to unauthorized access to sensitive information or actions on behalf of the victim client.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 3.2.11 3.2.11
  • >= 3.3.0, < 3.3.4 3.3.4

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, developers can implement additional checks in their code to validate the authenticated principal against the client ID. This can be done by comparing the authenticated principal with the client ID specified in the request and rejecting the request if they do not match. Here is an example of how this can be done in Java:

// Get the authenticated principal
Principal authenticatedPrincipal = request.getUserPrincipal();

// Get the client ID from the request
String clientId = request.getParameter("clientId");

// Validate the authenticated principal against the client ID
if (!authenticatedPrincipal.getName().equals(clientId)) {
    // Reject the request
    throw new SecurityException("Invalid client ID");
}

This code snippet demonstrates how to compare the authenticated principal with the client ID and reject the request if they are not equal. Developers should integrate this check into their existing codebase to mitigate the vulnerability until they can upgrade to a secure version of Apache CXF.

Conclusion

In conclusion, Apache CXF versions before 3.3.4 and 3.2.11 are vulnerable to a session hijacking vulnerability in the access token services. This vulnerability can be exploited by a malicious client who steals an authorization code issued to another client. To mitigate the risk, it is recommended to upgrade to the latest secure version of Apache CXF and implement additional checks in the code to validate the authenticated principal against the client ID. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.cxf:cxf →

Share this vulnerability

FAQ

Apache CXF is an open-source web services framework that allows developers to build and deploy services using various protocols and data formats.

OpenId Connect is an authentication protocol that allows users to log in to multiple websites using a single set of credentials.

Session hijacking is a type of attack where an attacker steals or impersonates a user's session, allowing them to gain unauthorized access to the user's account or perform actions on their behalf.

This vulnerability can be exploited if a malicious client manages to steal an authorization code issued to another client. By exploiting the vulnerability in the access token services, the attacker can obtain an access token for the victim client and potentially gain unauthorized access to their account or perform actions on their behalf.

To protect your application from this vulnerability, it is recommended to upgrade to Apache CXF version 3.3.4 or 3.2.11. These versions include a fix for the vulnerability in the access token services. Additionally, you can implement additional checks in your code to validate the authenticated principal against the client ID to mitigate the risk of session hijacking.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.cxf:cxf.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 3.2.11 3.2.11
  • >= 3.3.0, < 3.3.4 3.3.4

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback