Security fixes are made for the latest release only. Please upgrade to the newest release before reporting.
Please do not open a public issue for a security problem.
Report it privately through GitHub instead: on the repository's Security tab choose Report a vulnerability (direct link). Include:
- the bcpJson version (
bcpjson --version) and operating system; - what an attacker could do, and the steps or command line to reproduce it;
- any suggested fix, if you have one.
You should get a reply within a week. Once a fix is released, the advisory is published with credit to the reporter unless you prefer otherwise.
- SQL passwords on the command line. The
bcputility only accepts SQL passwords through-P, so they are visible in the process list while bcp runs (BCP export/import, andcopyof tables with geography/geometry/hierarchyid columns). Prefer Windows Authentication, or use a login that has only the permissions the job needs. --trust-server-certificateturns off TLS certificate validation. Use it only for local or test instances.- Exported files contain your data in plain text. Protect the export folder like a database backup.
--snapshotneedsCREATE DATABASEpermission on the source server; grant it to the account that runs exports only if you use the option.
Every release asset has a SHA-256 checksum in SHA256SUMS and a signed build-provenance attestation. See Install for how to verify them.