> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cockroachlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Technical Advisory 103220

export const InternalLink = ({version, path = "", children, ...props}) => {
  let detectedVersion = version || "stable";
  if (typeof window !== 'undefined' && !version) {
    const match = window.location.pathname.match(/\/docs\/([^/]+)/);
    if (match) {
      detectedVersion = match[1];
    }
  }
  const normalizedPath = path.startsWith("/") ? path.slice(1) : path;
  return <a href={`/docs/${detectedVersion}/${normalizedPath}`} {...props}>
      {children}
    </a>;
};

Publication date: May 16, 2023

## Description

In CockroachDB v23.1.0 and its testing versions, inserting rows into a multi-[column-family](https://www.cockroachlabs.com/docs/v23.1/column-families) table with [`COPY`](https://www.cockroachlabs.com/docs/v23.1/copy-from) can corrupt the table. Future reads on the corrupted table can result in internal errors or silent data corruption. If the table is empty before the `COPY` executes, the table must be dropped and re-[copied](https://www.cockroachlabs.com/docs/v23.1/copy-from) to be encoded correctly. If data was copied into a table with existing rows, the data in those rows may be irrecoverable.

## Statement

This fix has been applied to maintenance releases of CockroachDB <InternalLink version="releases" path="v23.1#v23-1-1">v23.1.1</InternalLink> and later.

## Mitigation

Users running CockroachDB v23.1.0 can avoid this issue by setting the [session variable](https://www.cockroachlabs.com/docs/v23.1/set-vars) `vectorize` to `off`, or setting `copy_fast_path_enabled` to `off` in any session that executes the `COPY` command.

Users running CockroachDB v23.1.0 are encouraged to upgrade to v23.1.1 or a later version as soon as possible.

## Impact

In CockroachDB v23.1.0 and its testing versions, executing `COPY` into a target table that has multiple [column families](https://www.cockroachlabs.com/docs/v23.1/column-families) can corrupt the table. Future reads on the corrupted table can result in internal errors or silent data corruption. If data was copied into a table with existing rows, the data in those rows may be irrecoverable.

The v23.1.0 binary was withdrawn hours after its release, and prior to the formal announcement of this major release, so impacts to production workloads are not likely.

Please reach out to the [support team](https://support.cockroachlabs.com/) if more information or assistance is needed.
