Skip to main content

Dvc: AsyncSSH vulnerable to Prefix Truncation Attack (a.k.a. Terrapin Attack) against ChaCha20-Poly1305 and Encrypt-then-MAC

0
Medium
Published: 08/13/2026 (08/13/2026, 16:44:03 UTC)
Source: GCVE Database
Product: dvc

Description

AsyncSSH versions 2.14.1 and earlier are vulnerable to a prefix truncation attack (Terrapin attack) targeting the ChaCha20-Poly1305 and Encrypt-then-MAC SSH algorithms. This attack allows a man-in-the-middle to strip messages after the initial key exchange, breaking SSH extension negotiation and downgrading connection security. The vulnerability exploits the lack of authentication for SSH_MSG_IGNORE messages and sequence number checks only after key exchange. The attack is guaranteed to work on ChaCha20-Poly1305 and requires CBC ciphers for practical exploitation of Encrypt-then-MAC. A patch is available that implements a 'strict kex' handshake to prevent this attack, requiring support on both client and server sides. As a temporary mitigation, disabling affected algorithms and using alternatives like AES-GCM is recommended.

CVSS v3.1

Score 5.9medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected software

Homebrewmore threats →ghsa
dvc
pkg:brew/dvc
Affected versions
>=2.7.3_1 <3.33.4_1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/18/2026, 01:41:24 UTC

Technical Analysis

AsyncSSH v2.14.1 and earlier are affected by a novel prefix truncation attack (Terrapin attack) against the ChaCha20-Poly1305 and Encrypt-then-MAC SSH algorithms. The attack enables a man-in-the-middle to remove an arbitrary number of messages immediately after the initial key exchange, disrupting SSH extension negotiation (RFC8308) and downgrading security. It exploits the unauthenticated SSH_MSG_IGNORE messages and the delayed sequence number verification in SSH. ChaCha20-Poly1305 is fully vulnerable due to its stateless design, while Encrypt-then-MAC requires CBC cipher usage for practical exploitation. The attack can also enable exploitation of other implementation flaws in a MITM scenario. OpenSSH proposed a 'strict kex' handshake modification to mitigate this, which AsyncSSH has implemented in patched versions. Both client and server must support this fix. Temporarily disabling affected algorithms and using AES-GCM is advised until patches are deployed.

Potential Impact

The vulnerability allows a man-in-the-middle attacker to strip messages after the SSH key exchange, causing a downgrade of SSH extension negotiation and connection security. This can disable security countermeasures and potentially expose the connection to further attacks. The attack does not compromise confidentiality directly but impacts integrity and security negotiation, leading to weakened security guarantees. ChaCha20-Poly1305 connections are fully vulnerable, while Encrypt-then-MAC is vulnerable when CBC ciphers are used. The attack can facilitate exploitation of other implementation flaws in MITM scenarios.

Mitigation Recommendations

A patch is available that adds support for a 'strict kex' handshake to prevent the prefix truncation attack. Both client and server must support this countermeasure for it to be effective. As a temporary measure, disabling the affected algorithms (ChaCha20-Poly1305 and Encrypt-then-MAC with CBC ciphers) and using unaffected alternatives like AES-GCM is recommended until patches are applied.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
BREW-dvc-GHSA-hfmc-7525-mj55
Osv Schema Version
1.7.3
Ecosystems
["Homebrew"]
Cvss Version
3.1

Threat ID: 6aac8e2d55bf5e2cf5490b55

Added to database: 09/18/2026, 01:04:45 UTC

Last enriched: 09/18/2026, 01:41:24 UTC

Last updated: 09/18/2026, 01:41:24 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses