CVE-2025-24501
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedAn improper input validation allows an unauthenticated attacker to alter PAM logs by sending a specially crafted HTTP request.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · moderate confidenceThis is an improper input validation vulnerability in an authentication-related component that logs to PAM (Pluggable Authentication Modules). An unauthenticated attacker can send specially crafted HTTP requests to inject or alter PAM log entries, potentially obscuring attack痕迹 or creating false log entries for social engineering purposes.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Adjacent
- Complexity
- Low
- Privileges
- None
- Authentication
- X
- User interaction
- None
- Scope
- X
CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify the HTTP authentication component that logs to PAMReview your web server or application server configuration files (e.g., httpd.conf, nginx.conf, application config) to locate modules or handlers that process HTTP authentication and forward results to PAM. Look for directives like 'PAMAuthentication' or references to pam_unix, pam_krb5, or similar PAM modules in the authentication chain.Affected if Your environment uses a web server or application framework that forwards HTTP authentication credentials or results to PAM for validation.
-
Determine the installed version of the authentication componentRun the package manager command appropriate to your system (e.g., 'rpm -q <package-name>', 'dpkg -l <package-name>', or check the binary version with '<binary> -v' or '--version') for the software that handles the HTTP-to-PAM authentication.Affected if The installed version matches or falls within an affected version range if such ranges become available from the vendor.
-
Verify PAM logging from HTTP requests is enabledExamine the PAM configuration files in /etc/pam.d/ (or equivalent) and the application-specific configuration. Look for service entries that handle web authentication and confirm that logging modules (like pam_unix.so, pam_krb5.so with logging enabled) are configured.Affected if PAM modules configured for HTTP authentication have logging capabilities enabled and are actively writing to system logs (/var/log/secure, /var/log/auth.log, or similar).
-
Inspect PAM logs for suspicious entriesReview PAM authentication logs (typically /var/log/secure, /var/log/auth.log, or /var/log/messages) for the web service account. Search for entries containing unexpected characters (newlines, carriage returns, tab characters) or patterns that suggest log injection attempts.Affected if Log entries contain unusual formatting, multiple entries from single requests, or embedded control characters that were not intentionally logged.
-
Test for log injection vulnerabilitySend a crafted HTTP request to your authentication endpoint with special characters in headers (e.g., username parameter containing '\n' or '\r\n') or parameters. Then verify if these characters appear literally in the PAM logs without sanitization.Affected if The special characters from the HTTP request appear unmodified in the PAM logs, indicating input is not being validated before logging.
Your environment is affected if you run a web server or application that forwards HTTP authentication to PAM and the PAM logs show unsanitized input from HTTP requests.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
From vendor dataImplement strict input validation on all HTTP request parameters before they are written to PAM logs. Consider sanitizing or rejecting special characters that could be used for log injection.
- Consultation4.0 h
- Implementation8.0 h
- Testing6.0 h
- Review / QA4.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $6,176.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-24501 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-24501 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data