# CVE-2025-9157: appneta tcpreplay tcprewrite edit_packet.c untrunc_packet use after free

- Severity: Medium 4.8 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-08-19T20:02:08.552Z
- Modified: 2026-06-17T10:08:26.333Z
- Weaknesses: CWE-119, CWE-416
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## Description

A vulnerability was determined in appneta tcpreplay up to 4.5.2-beta2. The impacted element is the function untrunc_packet of the file src/tcpedit/edit_packet.c of the component tcprewrite. Executing manipulation can lead to use after free. It is possible to launch the attack on the local host. The exploit has been publicly disclosed and may be utilized. This patch is called 73008f261f1cdf7a1087dc8759115242696d35da. Applying a patch is advised to resolve this issue.

(As written by CVE List.)

## Affected

- appneta tcpreplay: 4.5.2-beta1; 4.5.2-beta2

## Every score

- VulDB: CVSS:4.0 4.8 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- VulDB: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:2.0 4.3 Medium `AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:OF/RC:C`

## References

- <https://drive.google.com/file/d/1_aONM_TOF96JbnYviPyZhVk-7HObtX8H/view?usp=sharing> (exploit)
- <https://vuldb.com/?id.320537> (technical-description, vdb-entry)
- <https://vuldb.com/?ctiid.320537> (permissions-required, signature)
- <https://vuldb.com/?submit.630495> (third-party-advisory)
- <https://github.com/appneta/tcpreplay/issues/970> (issue-tracking)
- <https://github.com/appneta/tcpreplay/issues/970#issuecomment-3198966053> (issue-tracking)
- <https://github.com/appneta/tcpreplay/commit/73008f261f1cdf7a1087dc8759115242696d35da> (patch)

## Sources

- CVE List: [CVE-2025-9157](https://www.cve.org/CVERecord?id=CVE-2025-9157), CVE Terms of Use, modified 2025-08-19
- NVD: [CVE-2025-9157](https://nvd.nist.gov/vuln/detail/CVE-2025-9157), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-9157 · Whole record: https://cve.day/CVE-2025-9157.json · Rebuilt by cve.day 2026-11-25T22:59:03.336Z
