{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-94140",
        "assignerOrgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
        "state": "PUBLISHED",
        "assignerShortName": "CPANSec",
        "dateReserved": "2026-09-20T19:46:50.250Z",
        "datePublished": "2026-10-21T21:22:19.577Z",
        "dateUpdated": "2026-10-21T21:22:19.577Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "collectionURL": "https://cpan.org/modules",
                    "defaultStatus": "unaffected",
                    "modules": [
                        "Rex"
                    ],
                    "packageName": "Rex",
                    "packageURL": "pkg:cpan/Rex",
                    "programFiles": [
                        "lib/Rex/Commands/Rsync.pm"
                    ],
                    "programRoutines": [
                        {
                            "name": "Rex::Commands::Rsync::sync"
                        }
                    ],
                    "repo": "https://github.com/RexOps/Rex",
                    "versions": [
                        {
                            "lessThanOrEqual": "1.16.1",
                            "status": "affected",
                            "version": "0",
                            "versionType": "custom"
                        }
                    ]
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "type": "finder",
                    "value": "James Klein"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Rex versions through 1.16.1 for Perl accept an unknown SSH host key for remote rsync transfers because sync hardcodes StrictHostKeyChecking=no.\n\nEvery remote branch of sync builds its ssh command with that option, for password authentication, for private-key authentication and for the fallback. The ssh options a caller sets through set_openssh_opt reach the OpenSSH transport but not this command, so there is no configuration that restores host key checking for the transfer.\n\nAn attacker who can redirect the connection before the real host key is known presents their own and the transfer proceeds: under password authentication sync sends the connection password to that server, an upload writes the selected local files to it, and a download writes what it returns to the local destination."
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-322",
                            "description": "CWE-322 Key Exchange without Entity Authentication",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
                "shortName": "CPANSec",
                "dateUpdated": "2026-10-21T21:22:19.577Z"
            },
            "references": [
                {
                    "tags": [
                        "technical-description"
                    ],
                    "url": "https://metacpan.org/release/FERKI/Rex-1.16.1/source/lib/Rex/Commands/Rsync.pm"
                }
            ],
            "solutions": [
                {
                    "lang": "en",
                    "value": "No fixed CPAN release is currently available."
                }
            ],
            "source": {
                "discovery": "UNKNOWN"
            },
            "title": "Rex versions through 1.16.1 for Perl accept an unknown SSH host key for remote rsync transfers because sync hardcodes StrictHostKeyChecking=no",
            "x_generator": {
                "engine": "cpansec-cna-tool 0.1"
            }
        }
    }
}