CWE-193Weakness · CWE-193

CVE-2025-30742

MEDIUM · 5.3 CVSS v3.1 Published 2025-03-26
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
62/100
Remediation priority · Elevated
Remotely reachable No privileges Zero-click

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 · unedited
httpd.c in atophttpd 2.8.0 has an off-by-one error and resultant out-of-bounds read because a certain 1024-character req string would not have a final '\0' character.

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 · high confidence

In atophttpd 2.8.0, the httpd.c component contains an off-by-one error where a 1024-character 'req' string buffer lacks a final null terminator ('\0'), causing out-of-bounds memory reads when the string is processed. This can lead to exposure of adjacent memory contents.

MitigationAdd explicit null termination to the 1024-character req string buffer before use, and implement proper string length validation throughout the httpd.c file to prevent similar issues.

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
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

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 checks

Work through these to decide whether this CVE applies to you.

  1. Confirm atophttpd installation and version
    Run 'atophttpd -v' or check the package manager for the installed version (e.g., 'dpkg -l atophttpd' or 'rpm -qi atophttpd')
    Affected if The installed version is exactly 2.8.0
  2. Locate the httpd.c source file
    Search for httpd.c in the source tree or package contents: 'find / -name httpd.c 2>/dev/null' or 'dpkg -L atophttpd | grep httpd.c'
    Affected if The httpd.c file from version 2.8.0 is present in the environment
  3. Inspect the req buffer declaration in httpd.c
    Open httpd.c and search for the 'req' buffer declaration around 1024 characters, for example: 'grep -n "char req\[1024\]" httpd.c' or manually review the buffer allocation
    Affected if A 1024-character 'req' buffer is declared without explicit null termination (no '{0}' initializer or explicit '\0' assignment nearby)
  4. Verify string handling code lacks null termination
    Review the code section where 'req' is populated (e.g., using strcpy, memcpy, or read functions) and check if null termination is added before the string is processed or logged
    Affected if The code fills the 1024-byte buffer without adding a terminating null character, leaving it vulnerable to out-of-bounds reads
  5. Determine if the httpd service is actively processing requests
    Check if the atophttpd daemon is running: 'ps aux | grep atophttpd' or check listening ports for the httpd service
    Affected if The vulnerable httpd component is actively running and processing HTTP requests, enabling the out-of-bounds memory exposure

You are affected if atophttpd version 2.8.0 is installed, the httpd.c file contains the 1024-character req buffer without null termination, and the httpd service is running.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

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 data
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Add explicit null termination to the 1024-character req string buffer before use, and implement proper string length validation throughout the httpd.c file to prevent similar issues.

Have this fixed Scoped from the published advisory
  • Consultation2.0 h
  • Implementation2.0 h
  • Testing3.0 h
  • Review / QA2.0 h
9.0 hours of engineering $1,570
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,512.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-30742 — 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 sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-30742 in production — separate from our analysis above.

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.

What this is

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.

What belongs here
  • 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